<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>单选按钮</title>
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			body {
				display: flex;
				align-items: center;
				justify-content: center;
				height: 100vh;
				background-color: #f4e7ec;
			}
			ul,
			li {
				list-style: none;
			}
			.container {
				display: flex;
				flex-direction: column;
			}
			label {
				display: flex;
				cursor: pointer;
			}
			input {
				display: none;
			}
			input:checked + span {
				background: #edd8e0;
			}
			input:checked + span::before {
				box-shadow: 0 0 0 15px #900c3f inset;
			}
			span {
				display: flex;
				align-items: center;
				width: 400px;
				padding: 15px 30px;
				margin-bottom: 10px;
				font-size: 40px;
				border-radius: 90px;
				transition: all 0.3s;
			}
			span:hover {
				background: #edd8e0;
			}
			span::before {
				content: "";
				display: block;
				margin-right: 10px;
				width: 60px;
				height: 60px;
				background: #fff;
				border-radius: 50%;
				box-shadow: 0 0 0 5px #900c3f inset;
				transition: all 0.3s;
			}
		</style>
	</head>
	<body>
		<div class="container">
			<label for="html">
				<input type="radio" name="radio" id="html" checked />
				<span>HTML</span>
			</label>
			<label for="css">
				<input type="radio" name="radio" id="css" />
				<span>CSS</span>
			</label>
			<label for="js">
				<input type="radio" name="radio" id="js" />
				<span>javaScript</span>
			</label>
		</div>
	</body>
</html>
